<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#movebox{
				width: 100px;
				height: 100px;
				border-radius: 10%;
				background-color: rgba(255,0,0,50%);
				animation: movebox 1s infinite alternate linear;
				position: relative;
				transition: 2s;
			}
			#movebox:hover{
				width: 200px;
				height: 200px;
			}
			
			/*定义一个动画（关键帧）*/
			@keyframes movebox{
				from{left: 0px;}
				to{left: 200px;}
			}
		</style>
	</head>
	<body>
		<h3>移动方块动画效果</h3>
		<div id="movebox">
			<!-- <img src="images/earth.png" > -->
		</div>
	</body>
</html>
